let a1_classHref= typeof classHref2222 !="undefined"  ? classHref2222:"https://zheng-fy.gitee.io";

let sdsdsdd = function (type){
    alert(type);
    window.localStorage.setItem("asdas656asRunPage",type);
    $.runPage && $.runPage()();
};



let dblclickscrollTop =()=>{
    if(sdsdsd_timersstype==true){
        sdsdsd_timersstype=false;
        clearInterval(sdsdsd_timerss);return;
    }
    sdsdsd_timersstype=true;
    //使用定时器
    sdsdsd_timerss = setInterval(function(){
     //文本是否已经到底部（底部出现在浏览器窗口中）
     if($(document).scrollTop() + window.innerHeight>= $('body').height()){ //$(window).height()
         sdsdsd_timersstype=false;
         clearInterval(sdsdsd_timerss);
     }else{
         sdsdsd_newTop =  $(document).scrollTop();
         $(document).scrollTop(sdsdsd_newTop + 1);
     }
    },21);
};


let swiperRemove =  (status)=> {
    if (status === 0) {
        A1_sda_dom.style.transform = `translateY(-${-Number(document.querySelector(a1_classname2).style.transform.replace(/[^[0-9]/ig, '')) + (A1_sda_width - 26)}px)`
    }else{
        A1_sda_dom.style.transform = `translateY(-${(A1_sda_width - 26)*status }px)`;
    }
};


let A1_jia =  ()=>{
    a1_classname= typeof classnamecia222 !="undefined"  ? classnamecia222:".asdasdiasd";
    var size=parseFloat($("#fontsizeinput").val())+1;
    $("#fontsizeinput").val(size);
    $(''+a1_classname).css({"font-size":size+"px"});
    window.localStorage.setItem("a1_fontsize",size);
};
let A1_jian = ()=>{
    a1_classname= typeof classnamecia222 !="undefined"  ? classnamecia222:".asdasdiasd";
    var size=parseFloat($("#fontsizeinput").val())-1;
    $("#fontsizeinput").val(size);
    $(''+a1_classname).css({"font-size":size+"px"});
    window.localStorage.setItem("a1_fontsize",size);
};

let A1_line_jia = ()=>{
    a1_classname= typeof classnamecia222 !="undefined"  ? classnamecia222:".asdasdiasd";
    var size=parseFloat($("#lineheightinput").val())+1;
    $("#lineheightinput").val(size);
    $(''+a1_classname).css({"line-height":size+"px"});
    window.localStorage.setItem("a1_lineheight",size);
};
let A1_line_jian = ()=>{
    a1_classname= typeof classnamecia222 !="undefined"  ? classnamecia222:".asdasdiasd";
    var size=parseFloat($("#lineheightinput").val())-1;
    $("#lineheightinput").val(size);
    $(''+a1_classname).css({"line-height":size+"px"});
    window.localStorage.setItem("a1_lineheight",size);
};

let A1_csstype = (type)=>{
    var csstypehtml ="<style>"+csstype[type]+"</style>";
    $("#asdas656as").append(csstypehtml);
    window.localStorage.setItem("a1_csstype",type);
    
};

let open_tool = ()=>{
    $("#A1_tool").toggle();
};
function alertsss(){
    $(".adsaalert").remove();
    
    $("html").append(`
    <div class="adsaalert alert"></div>
    `);
    
    
    $("html").append(`<style class="adsaalert">.alert {
display: none;
position: fixed;
top: 50%;
left: 50%;
min-width: 300px;
max-width: 600px;
transform: translate(-50%,-50%);
z-index: 9999999999;
text-align: center;
padding: 15px;
border-radius: 3px;
}
.alert-success {
color: #3c763d;
background-color: #dff0d8;
border-color: #d6e9c6;
}
.alert-info {
color: #31708f;
background-color: #d9edf7;
border-color: #bce8f1;
}
.alert-warning {
color: #8a6d3b;
background-color: #fcf8e3;
border-color: #faebcc;
}
.alert-danger {
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
} </style>`);
    
    $("html").append(`<script class="adsaalert">/**
* 弹出式提示框，默认1.2秒自动消失
* @param message 提示信息
* @param style 提示样式，有alert-success、alert-danger、alert-warning、alert-info
* @param time 消失时间
*/
let prompt = function (message, style, time)
{
if (message.toString().trim() == '') return;
style = (style === undefined) ? 'alert-success' : style;
time = (time === undefined) ? 2500 : time;
$('<div>')
.appendTo('body')
.addClass('alert ' + style)
.html(message)
.show()
.delay(time)
.fadeOut();
};
// 成功提示
let success_prompt = function(message, time)
{
prompt(message, 'alert-success', time);
};
// 失败提示
let fail_prompt = function(message, time)
{
prompt(message, 'alert-danger', time);
};
// 提醒
let warning_prompt = function(message, time)
{
prompt(message, 'alert-warning', time);
};
// 信息提示
let info_prompt = function(message, time)
{
prompt(message, 'alert-info', time);
};
</script>`);



};



let csstype=[
    ""
    ,
    `*{
        background: #fff !important;
        color: #757575 !important;
    }`
    ,`
    *{
        background: #1a1a1a !important;
        color: #a99f9f !important;
    }`
    ,`*{
        background: #bfdabf !important;
        color: #585353 !important;
    }`
    ,`*{
        background: #d4c3a4 !important;
        color: #585353 !important;
    }`,
    `
    *{
        background: #f4f4f4 !important;
        color: #a99f9f !important;
    }`
    
    
    
    ,
    `
    *{
        background: rgba(255, 0, 0, 0) !important;
        color: #464646 !important;
    }
    body{
        background:url(${a1_classHref}/image/2.jpg?s) !important;
        background-size: 100% auto !important;
        
    }`,
    `
    *{
        background: rgba(255, 0, 0, 0) !important;
        color: #464646 !important;
    }
    body{
        background:url(${a1_classHref}/image/3.jpg?s) !important;
        background-size: 100% auto !important;
        
    }`,
    `
    *{
        background: rgba(255, 0, 0, 0) !important;
        color: #464646 !important;
    }
    body{
        background:url(${a1_classHref}/image/4.jpg?s) !important;
        background-size: 100% auto !important;
        
    }`,
    `
    *{
        background: rgba(255, 0, 0, 0) !important;
        color: #464646 !important;
    }
    body{
        background:url(${a1_classHref}/image/5.jpg?s) !important;
        background-size: 100% auto !important;
        
    }`,
    `
    *{
        background: rgba(255, 0, 0, 0) !important;
        color: #464646 !important;
    }
    body{
        background:url(${a1_classHref}/image/6.jpg?s) !important;
        background-size: 100% auto !important;
        
    }`,
    `
    *{
        background: rgba(255, 0, 0, 0) !important;
        color: #464646 !important;
    }
    body{
        background: #fff !important;
        
    }`,
    `
    *{
        background: rgba(255, 0, 0, 0) !important;
        color: #464646 !important;
    }
    body{
        background:url(${a1_classHref}/image/8.jpg?s) !important;
        background-size: 100% auto !important;
        
    }`
    ,`
    *{
        background: #3e3e3e !important;
        color: #969090 !important;
    }`,
    `
    *{
        background: rgba(255, 0, 0, 0) !important;
        color: #403c3c !important;
    }
    body{
        background:url(${a1_classHref}/image/9.jpg?s) !important;
        background-size: 100% auto !important;
        
    }`,
    `
    *{
        background: rgba(255, 0, 0, 0) !important;
        color: #403c3c !important;
    }
    body{
        background:url(${a1_classHref}/image/10.jpg?s) !important;
        background-size: 100% auto !important;
        
    }`,
    `
    *{
        background: rgba(255, 0, 0, 0) !important;
        color: #403c3c !important;
    }
    body{
        background:url(${a1_classHref}/image/11.jpg?s) !important;
        background-size: 100% auto !important;
        
    }`
    ];


let adjajshdashiausd1=function(){
    
alertsss();

$.runPage = function(){
    return  ()=>{
        info_prompt("阅读模式开启");
        $(""+window.localStorage.getItem("a1_classname")).page();
    }
};
let maincss=`
<style>
.button{padding: 2px 5px;margin:0 2px ; color:#3c3c3c}
.link{color:#cacaca;text-decoration: none;}
#asdas656as{position: fixed;display: block;top: 3px;height: max-content;padding: 5px;left: 3%;color: #cacaca;font-size: 12px;opacity: 0.65;z-index:999998;}
#fontsizeinput,#lineheightinput{width:20px;padding:0;color:#3c3c3c}
#asdas656as a,#asdas656as span{    border: 0 !important; margin: 0 !important;padding: 7px !important;}
</style>`;
$("head").prepend(maincss);
 
if(window.localStorage){

let sdasde=window.localStorage.getItem("a1_fontsize");
let ls_lineheight=window.localStorage.getItem("a1_lineheight");
let a1_classname= typeof classnamecia222 !="undefined"  ? classnamecia222:".asdasdiasd";
let a1_classnameblank= typeof classnameciablank222 !="undefined"  ? classnameciablank222:"";
let a1_classname2= typeof classnamecia2222 !="undefined"  ? classnamecia2222:"#nr1";
let A1font=typeof A1fontcia222 !="undefined" ? A1fontcia222: sdasde ? sdasde :20 ;
let A1lineheight=ls_lineheight ? ls_lineheight: typeof A1lineheightcia222 !="undefined" ? A1lineheightcia222 :30 ;
window.localStorage.setItem("a1_classname",a1_classname2);
let aAbr222= typeof Abr222 !="undefined"  ? Abr222:true;
let ls_a1_csstype=window.localStorage.getItem("a1_csstype");

let aCSStype= ls_a1_csstype ? ls_a1_csstype: typeof Csstype !="undefined" ? Csstype : 0;

let A1_ds_next= typeof ds_next !="undefined"  ? ds_next:0;

$(a1_classnameblank).css("display","none");
$(''+a1_classname).css("font-size",A1font+"px");
$(''+a1_classname).css("line-height",A1lineheight+"px");
$(''+a1_classname).css({"position": "relative", "z-index": "999997"});

$("#asdas656as").append(`
<span class="button" onclick='$("#A1_tool").toggle()'>》</span>
<div id="A1_tool" style="display:none;margin-top:6px;background: rgb(255 255 255 / 93%) !important;">
<div style='height: 30px;background:#aaa;'>
<span class='button asdasdbutton' id="onclickA1_jia">+</span>
<input class='button' id='fontsizeinput' value='${A1font}'>
<span class='button asdasdbutton' id="onclickA1_jian">-</span>
<span class='button asdasdbutton' id="onclickA1_line_jia">+</span>
<input class='button' id='lineheightinput' value='${A1lineheight}'>
<span class='button asdasdbutton' id='onclickA1_line_jian'>-</span>
<span class="button asdasdbutton" id='onclickA1_csstype' idtype='2'>黑</span>
<span class="button asdasdbutton" id='onclickA1_csstype' idtype='13'>黑2</span>
<span class="button asdasdbutton" id='onclickA1_csstype' idtype='1'>白</span>
<span class="button asdasdbutton" id='onclickA1_csstype' idtype='5'>白2</span>
<span class="button asdasdbutton" id='onclickA1_csstype' idtype='3'>护</span>
<span class="button asdasdbutton" id='onclickA1_csstype' idtype='4'>纸</span>
</div>
<div style='height: 30px;'>
<span class="button asdasdbutton" id = 'onclickA1_csstype' idtype='6'>图灰</span>
<span class="button asdasdbutton" id = 'onclickA1_csstype' idtype='7'>图黄</span>
<span class="button asdasdbutton" id = 'onclickA1_csstype' idtype='8'>图红</span>
<span class="button asdasdbutton" id = 'onclickA1_csstype' idtype='9'>图粉</span>
<span class="button asdasdbutton" id = 'onclickA1_csstype' idtype='10'>图黄2</span>
<span class="button asdasdbutton" id = 'onclickA1_csstype' idtype='11'>图白</span>
<span class="button asdasdbutton" id = 'onclickA1_csstype' idtype='12'>图灰2</span>
<span class="button asdasdbutton" id = 'onclickA1_csstype' idtype='14'>图灰3</span>
<span class="button asdasdbutton" id = 'onclickA1_csstype' idtype='15'>图护</span>
<span class="button asdasdbutton" id = 'onclickA1_csstype' idtype='16'>图纸</span>
</div>
</div>
`);



if(aAbr222){
    let newText = $(''+a1_classname).html().replace(/(<br\s*\/?>){2,}|(<br\s*\/?>)\n(<br\s*\/?>)/gi, '<br>');
    $(''+a1_classname).html(newText);
};




let csstypehtml ="<style>"+csstype[aCSStype]+"</style>";
$("#asdas656as").prepend(csstypehtml);




if(A1_ds_next=="adasd"){
        
        
    $("body").eq(0).append('<style>' +
    
    `
    body{
        height: 100vh;
    }
    ${a1_classname2}{
        padding-top: 26px;
        transition:transform .5s;
        transform:translateY(-0px);
    }
    `+
    
    '</style>');
    
           
    let A1_sda_dom = document.querySelector(a1_classname2);
    const A1_sda_width = document.body.offsetHeight;
    let A1_sda_page=0;
    touch.on(a1_classname2, 'swipeup', function () {
        A1_sda_page++;
        swiperRemove(A1_sda_page);
    });
    touch.on(a1_classname2, 'swipedown', function () {
        A1_sda_page--;
        swiperRemove(A1_sda_page);
    });
    touch.on('body', 'click', function () {
        A1_sda_page=0;
        A1_sda_dom.style.transform = "translateY(-0px)";
    });
    
    
};


};

let sdsdsd_newTop=0; 
let sdsdsd_timerss=null;
let sdsdsd_timersstype=false;
$(window).on("dblclick",function(){
    dblclickscrollTop();
});

};



let adjajshdashiausd2=function(){

$("body").on("click","#sdsdsddonclick",()=>{
    sdsdsdd(true);
});
$("body").on("click","span.asdasdbutton",(e)=>{
    let id = e.target.id.replace("onclick","") ;
    let type = e.target.getAttribute("idtype");
    let func = eval(id);
    if(type){
        func(type);
        return;
    }
    func();

});

setTimeout(function(){
    if(window.localStorage.getItem("asdas656asRunPage") === 'true'){
        $.runPage && $.runPage()();
    }else{
        window.localStorage.setItem("asdas656asRunPage",false);
    }
},200);

var time= new Date();
$("body").eq(0).append(
    '<div id="asdas656as">' +
    '<span class="button" id="time">'+time.getHours()+':'+time.getMinutes()+'</span>' +
    '<a class="button link" target=_blank  href="'+ a1_classHref +
    "/bm/index.php?i=add&sk=4&type=add&title="+window.btoa(window.encodeURIComponent(document.getElementsByTagName("title")[0].innerHTML))+"&url="+window.location.href+'">写入</a>' +
    '<a class="button link" href="'+a1_classHref+'/bm?sk='+(new Date().getTime())+'" target=_blank>列表</a>' +
    '<span class="button link" id = "sdsdsddonclick">阅读</span>' +
    '</div>');//<span class="button link" id="fanye123" onclick =runfan() >翻页</span>
    
};



let adjajshdashiausd3=function(){
    (function() {
    /**
     * 调用 content 为当前文章所在Dom
     *  <script>
            $('.content').page();
        </script>
     **/
    
    
        function TurnPage(wrap) {
            this.wrap = wrap;
            this.page = 1;
        };

        TurnPage.prototype.init = function () {
            let config  = this.getHref();
            this.fillHtml(config);
            this.event();
            this.toolPage();
        };

        TurnPage.prototype.getHref = function () {
            let nexthref = $("a").filter(function(){
		        return $(this).text().indexOf("下一页") > -1 || $(this).text().indexOf("下一章") > -1;
            });
            let title = $("title").text();
            let prvhref = $("a").filter(function(){
		        return $(this).text().indexOf("上一页") > -1 || $(this).text().indexOf("上一章") > -1;
            });
            let menu = $("a").filter(function(){
		        return $(this).text().indexOf("目录") > -1;
            });
            return {"下一章":nexthref.attr("href") ?? '###',"上一章":prvhref.attr("href") ?? '###',"目录":menu.attr("href") ?? '###',"标题":title};
        };

        TurnPage.prototype.getX = function (e) {
            e = e || window.event;
            return e.pageX || e.clientX + document.body.scroolLeft;
        };

        TurnPage.prototype.getY = function (e) {
            e = e || window.event;
            return e.pageY || e.clientY + document.body.scroolTop;
        };

        TurnPage.prototype.event = function () {
            $wrapper = $("#fillPage");
            var isMoving = false;
            var firstTouch;
            var touch = {};
            var startLeft = 0;
            window.ye = $(document).width() / $(window).width();
            $(".pageSize-1").html(Math.ceil(ye));
            window.dye = $(document).width();
            window.wye = $(window).width();
            
            let pageEventFunc = (event, type = false,pageX = this.getX(event),pageY = this.getY(event)) => {
                this.toolPage("hidden");
                if (type === false) {
                    //click 事件的处理
                    x2 = pageX;
                    y2 = pageY;
                    if (x2 > $(window).width() / 2 || y2 > $(window).height() / 2) {
                        startLeft++;
                    } else {
                        startLeft--;
                    }
                } else {
                    //滑动事件的处理
                    if (type === 1200) { //下一页
                        startLeft++;
                    } else if (type === 1300) { // 上一页
                        startLeft--;
                    } else {
                        return false;
                    }
                };
                

                if (startLeft * wye >= dye) {
                    startLeft--;
                    $wrapper.css({
                        "-webkit-transform": "translateX(" + -startLeft * wye + "px)",
                        transform: "translateX(" + -startLeft * wye + "px)"
                    });
                    
                    this.getColor().autopage === true && window._wdasdasdye===1 && $("#hrefprev")[0].click();
                    
                    if(window._wdasdasdye !== 1){
                        window._wdasdasdye = 1;
                    };
                    
                    return false;
                } else if (startLeft * wye < wye) {
                    startLeft = 0;
                    $(".pageSize-2").html((startLeft + 1));
                    $wrapper.css({
                        "-webkit-transform": "translateX(0px)",
                        transform: "translateX(0px)"
                    });
                    this.getColor().autopage === true && window._wdasdasdye===1 && $("#hrefnext")[0].click();
                    if(window._wdasdasdye !== 1){
                        window._wdasdasdye = 1;
                    };
                    return false;
                } else {
                    $(".pageSize-2").html((startLeft + 1));
                }
                $wrapper.css({
                    "-webkit-transform": "translateX(" + -startLeft * wye + "px)",
                    transform: "translateX(" + -startLeft * wye + "px)"
                });
                this.page = startLeft;
            };

            document.getElementById("fillPageBox").addEventListener("click", event => {
                x2 = this.getX(event);
                windowWidth = $(window).width();
                if(Math.abs(windowWidth/2 - x2) < windowWidth/12){
                    this.toolPage();
                }else{
                    pageEventFunc(event);
                };
                
            });

            document.getElementById("fillPageBox").addEventListener("dblclick", event => {
                event.stopPropagation && event.stopPropagation();
                event.preventDefault && event.preventDefault();
            });

            document.getElementById("fillPageBox").addEventListener("touchmove", event => {
                event.stopPropagation && event.stopPropagation();
                event.preventDefault && event.preventDefault();
            });

            let pageX = [0, 0];

            document.getElementById("fillPageBox").addEventListener("touchstart", event => {
                event.stopPropagation && event.stopPropagation();
                event.preventDefault && event.preventDefault();
                pageX[0] = event.targetTouches[0]["pageX"];
            });


            document.getElementById("fillPageBox").addEventListener("touchend", event => {
                event.stopPropagation && event.stopPropagation();
                event.preventDefault && event.preventDefault();
                pageX[1] = event.changedTouches[0]["pageX"];
                pageY = event.changedTouches[0]["pageY"];

                if (pageX[0] > pageX[1]) {
                    pageEventFunc(event, 1200);
                } else if (pageX[0] < pageX[1]) {
                    pageEventFunc(event, 1300);
                }else{
                    x2 = pageX[1];
                    windowWidth = $(window).width();
                    if(Math.abs(windowWidth/2 - x2) < windowWidth/12){
                        this.toolPage();
                    }else{
                        pageEventFunc(event,false,pageX[1],pageY);
                    }
                }
            });
        };

        TurnPage.prototype.fillHtml = function (config) {
            info_prompt(JSON.stringify(config));
            let html = $(this.wrap).text();
            let body = $("body");
            body.empty();
            body.append("<div class='fillPage' id='fillPageBox'><div id='fillPage'></div></div>");
            let page = $("#fillPage");
            body.append(`<style>
            body,p{
                padding: 0px;
                margin: 0px;
            }
            .menu-ddd{
                position: fixed;
                right: 0px;
                width: 100vw;
                color: rgb(0 0 0);
                background: rgb(0 0 0 / 85%);
                transition: height 0.1s ease 0s;
                box-shadow: 4px 0px 13px 3px rgb(94 94 94 / 82%);
                overflow: hidden;
                display: flex;
                font-size:14px;
                flex-direction: column;
                justify-content: space-evenly;
                z-index:99999;
            }
            .menu-ddd div a{
                color: #fff;
                text-decoration: none;
                width: 33%;
                text-align: center;
            }
            .menu-ddd div{
                display: flex;
                color: #fff;
                text-align: center;
                justify-content: center;
                padding: 10px 0px;
            }
            .menu-ddd div span{
                text-align: center;
            }
            .menu-ddd div span p button{
                width: 12vw;
                margin: 0px 6vw 0 0;
                background: rgb(251 251 251 / 12%);
                color: #fff;
                border: 0px;
                border-radius: 6px;
                border: 1px solid #525252;
                margin-top: 3vw;
                outline: none;
            }
            .menu-ddd div span p{
                display: flex; 
                flex-direction: row;
                justify-content: space-between;
                align-items: flex-end;
            }
            #fillPage{
                overflow: visible;
                height: 90%;
                columns: calc(100vw - 9vw) 1;
                column-gap: 18vw;
                padding: 9vw;
                transition: transform 0.1s ease 0s;
                line-height: 26px;
                user-select: none;
                font-size: 14px;
                white-space:normal;
                word-break:break-all;
                word-wrap:break-word;
            }
            button.select{
                border: 1px solid #fff597 !important;
            }
            </style>`);
            
            page.html(html);
            
            $(".fillPage").append(`
            <span class='pageSize' id='pageNumber' style='position: fixed;top: 2vw;right: 2vw;color: #555;'>
            第<span class='pageSize-2'>1</span>页/共<span class='pageSize-1'></span>页
            </span>`);
            
            $("body").off("click","#pageNumber").on("click","#pageNumber",e=>{
                this.toolPage();
            });
            
            
            $("#fillPageBox").parent().append(`<span class='pageMenuTop menu-ddd' style='top: 0px;height:0;'>
            <div><span>${config["标题"]}</span></div>
            <div>
                <a id='hrefprev' href='${config["上一章"]}'>上一章</a>
                <a href='${config["目录"]}'>目录</a>
                <a id='hrefnext' href='${config["下一章"]}'>下一章</a>
            </div>
            
            </span><span class='pageMenuButtom menu-ddd' style='bottom: 0px;height:0;'>
            <div>
                <a href='${config["上一章"]}'>上一章</a>
                <a href='${config["目录"]}'>目录</a>
                <a href='${config["下一章"]}'>下一章</a>
            </div>
            <div>
                <span>
                    <p> 
                    <button class='buttonConfig font'>+</button>
                    <button class='fontsizeText' style='color: #ffb4b4;width: 80px;background: transparent;'>14</button>
                    <button class='buttonConfig font'>-</button>
                    字体 
                    </p>
                    <p> 
                    <button class='buttonConfig line'>+</button>
                    <button class='lineheightText' style='color: #ffb4b4;width: 80px;background: transparent;'>26</button>
                    <button class='buttonConfig line'>-</button>
                    排版 
                    </p>
                    <p> 
                    <button class='buttonConfig color'>黄</button>
                    <button class='buttonConfig color'>白</button>
                    <button class='buttonConfig color'>绿</button>
                    <button class='buttonConfig color'>黑</button>
                    配色 
                    </p>
                    <p> 
                    <button class='buttonConfig page'>是</button>
                    <button class='buttonConfig page'>否</button>
                    <button class='buttonConfig read'>阅读</button>
                    自动翻页 
                    </p>
                </span>
            </div>
            </span>`);
            
            this.addConfig();
            this.$wrapper = $("#fillPage");
        };
        
        
        
        TurnPage.prototype.toolPage = function(hidden){
            if($(".pageMenuTop").css("height") == "0px" && hidden != "hidden"){
                $(".menu-ddd").show();
                $(".pageMenuTop").css("height","10vh");
            }else{
                $(".menu-ddd").hide();
                $(".pageMenuTop").css("height","0px");
            }
            
            if($(".pageMenuButtom").css("height") == "0px" && hidden != "hidden"){
                $(".pageMenuButtom").css("height","25vh");
            }else{
                $(".pageMenuButtom").css("height","0px");
            }
            
            
            
            $("body").off("click",".buttonConfig").on("click",".buttonConfig", event => {
                let type,value;
                let config = this.getColor();
                switch (event.target.innerText) {
                    case '+':
                        if($(event.target).hasClass("font")){
                            type = "fontsize";
                        }else if($(event.target).hasClass("line")){
                            type = "lineheight";
                        }
                        config[type] ++;
                        break;
                    case '-':
                        if($(event.target).hasClass("font")){
                            type = "fontsize";
                        }else if($(event.target).hasClass("line")){
                            type = "lineheight";
                        }
                        config[type] --;
                        break;
                    
                    default:
                        if($(event.target).hasClass("color")){
                            type = "color";
                            config[type] = event.target.innerText;
                        }else if($(event.target).hasClass("page")){
                            type = "autopage";
                            config[type] = event.target.innerText === "是" ? true : false;
                        }else if($(event.target).hasClass("read")){
                            type = "read";
                            config[type] = !config[type];
                            window.localStorage.setItem("asdas656asRunPage",config[type]);
                        }
                        // code
                }
                
                this.setColor(config);
                
                this.addConfig();
            });

        };
        
        let _pageToolColorConfig_data = {fontsize:14,lineheight:26,color:"绿",autopage:false,read:true};

        TurnPage.prototype.addConfig = function(key,value){
            if(this.getColor()){
                _pageToolColorConfig_data = this.getColor();
            }
            
            let color = {"黄":["#ddd1b7","#1a1a1a"],"黑":["#3e4245","#ddd"],"绿":["#C7EDCC","rgb(58, 60, 47)"],"白":["#ffffff","#1c1c1c"]};
            if(key){
                _pageToolColorConfig_data[key] = value;
            }
            
            this.setColor(_pageToolColorConfig_data);
            
            $(".fontsizeText").text(_pageToolColorConfig_data.fontsize);
            $(".lineheightText").text(_pageToolColorConfig_data.lineheight);
            
            $("#fillPage").css({
                "fontSize":_pageToolColorConfig_data.fontsize + "px",
                "lineHeight":_pageToolColorConfig_data.lineheight + "px",
            });
            
            $("body").css({
                "color":color[_pageToolColorConfig_data.color][1],
                "backgroundColor":color[_pageToolColorConfig_data.color][0],
            });
            
            let button = $(".buttonConfig");
            
            button.filter(function(){
                return $(this).text() == _pageToolColorConfig_data.color && $(this).hasClass("color")
            }).addClass("select").siblings().removeClass("select");
                
            if(_pageToolColorConfig_data.autopage){
                button.filter(function(){
                    return $(this).text() == "是" && $(this).hasClass("page")
                }).addClass("select").siblings().removeClass("select");
            }else{
                button.filter(function(){
                    return $(this).text() == "否" && $(this).hasClass("page")
                }).addClass("select").siblings().removeClass("select");
            }
            
            if(_pageToolColorConfig_data.read){
                $(".buttonConfig.read").addClass("select");
            }else{
                $(".buttonConfig.read").removeClass("select");
            }
            
            
        };
        
        TurnPage.prototype.setColor = function(data){
            window.localStorage.setItem("pageToolColorConfig",JSON.stringify(data));
        };

        TurnPage.prototype.getColor = function(hidden){
            return JSON.parse(window.localStorage.getItem("pageToolColorConfig"));
        };

        $.fn.extend({
            page: function () {
                var obj = new TurnPage(this);
                obj.init();
            }
        });
    }
)();




};


if(typeof $ == "function" && $("html")?.length>0){
    
    adjajshdashiausd2();
    adjajshdashiausd1();
    adjajshdashiausd3();
    
    
}else{
    let script={
        addurl: function (id,url){
            var script = document.createElement('script');
            script.setAttribute('type','text/javascript');
            script.setAttribute('id',id);
            script.setAttribute('src',url);
            script.setAttribute('charset','utf-8');
            document.getElementsByTagName('head')[0].appendChild(script);
            return this;
        },
        getData : function(){
            var date = new Date();
            return date.getYear() + date.getFullYear() + date.getMonth() + date.getDate();
        },
        getId: function (id){
            return document.getElementById(id);
        },
        getTag: function (name){
            return document.getElementsByTagName(name);
        },
        getClass: function (classs){
            return document.getElementsByClassName(classs);
        },
        olad:function(id,url,json){
            var status=1;
            script.addurl(id,url).getId(id).onload=function(){
                status=0;
                json.success();
    
            };
            setTimeout(function(){
                if(status==1){
                    console.log(json);
                }
            },3000);
        }
    };
    script.olad("script098","https://zheng-fy.gitee.io/water/jq.js",{
        success:function(){
            
            adjajshdashiausd2();
            adjajshdashiausd1();
            adjajshdashiausd3();
            
        },
        error:function(){
            console.log(2)
        }
    });
};